<template>
  <div class="login">
    <div class="box">
      <p><input type="text" placeholder="请输入账号"></p>
      <p><input type="text" placeholder="请输入密码"></p>
      <el-row class="demo-autocomplete">
        <el-col :span="12">
          <div class="sub-title">激活即列出输入建议</div>
          <el-autocomplete class="inline-input" v-model="state1" :fetch-suggestions="querySearch" placeholder="请输入内容" @select="handleSelect"></el-autocomplete>
        </el-col>
        <el-col :span="12">
          <div class="sub-title">输入后匹配输入建议</div>
          <el-autocomplete class="inline-input" v-model="state2" :fetch-suggestions="querySearch" placeholder="请输入内容" :trigger-on-focus="false" @select="handleSelect"></el-autocomplete>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
// import a from './a'; // 引入组件
export default {
  props: {},
  data() {
    return {};
  },
  // 组件
  components: {},
  // 事件方法
  methods: {},
  // 计算属性
  computed: {},
  //生命周期
  created() { },
  mounted() { },
};
</script>

<style scoped>
/* @import url(''); 引入css样式 */
</style>